﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Cart.aspx.cs" Inherits="Cart" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Chapter 3: Shopping Cart</title>
    <style type="text/css">
        .style1
        {
            width: 285px;
            height: 155px;
        }
        .style2
        {
            height: 155px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Image ID="Image1" runat="server"
            ImageUrl="~/Images/banner.jpg" /><br /><br />
        Your shopping cart:<br /><br />
        <table cellpadding="0" cellspacing="0">
            <tr>
                <td class="style1" valign="top">
                    <asp:ListBox ID="lstCart" runat="server"
                        Height="135px" Width="275px"></asp:ListBox>
                </td>
                <td class="style2" valign="top">
                    <asp:Button ID="btnRemove" runat="server"
                        Text="Remove Item" Width="100px" onclick="btnRemove_Click" /><br /><br />
                    <asp:Button ID="btnEmpty" runat="server"
                        Text="Empty Cart" Width="100px" onclick="btnEmpty_Click" />
                </td>
            </tr>
        </table>
        <br />
        <asp:Button ID="btnContinue" runat="server"
            PostBackUrl="~/Order.aspx" Text="Continue Shopping" />&nbsp;
        <asp:Button ID="btnCheckOut" runat="server" Text="Check Out" 
            onclick="btnCheckOut_Click" /><br />
        <br />
        <asp:Label ID="lblMessage" runat="server" ForeColor="Green"></asp:Label>
    </div>
    </form>
</body>
</html>
